package com.geely.design.pattern.behavioral.responsibilitychain;

public abstract class Approver {

    protected Approver nextApprover; // 包含一个“自己”,这个自己就是下一个处理的节点

    public Approver(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }

    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }

    public abstract void deploy(Course course);
}
